package com.vo;

import java.io.Serializable;

public class Students implements Serializable {
    private String studentId;  // 与表字段一致
    private String studentName; // 原name改为studentName
    private String studentPwd;
    private String sex;
    private Integer classId;

    // 构造方法、getter和setter
    public Students() {}

    public Students(String studentId, String studentName, String studentPwd, String sex, String classId) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentPwd = studentPwd;
        this.sex=sex;
        this.classId=Integer.parseInt(classId);
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentPwd() {
        return studentPwd;
    }

    public void setStudentPwd(String studentPwd) {
        this.studentPwd = studentPwd;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }
}